# Contributor: kpcyrd <git@rxv.cc>
# Maintainer: kpcyrd <git@rxv.cc>
pkgname=rshijack
pkgver=0.5.2
pkgrel=0
pkgdesc="TCP connection hijacker, Rust rewrite of shijack"
url="https://github.com/kpcyrd/rshijack"
arch="all"
license="GPL-3.0-or-later"
makedepends="
	cargo
	cargo-auditable
	"
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/kpcyrd/rshijack/archive/v$pkgver.tar.gz"

build() {
	cargo auditable build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	install -Dm755 "$builddir/target/release/rshijack" -t "$pkgdir/usr/bin"
}

sha512sums="
e46e74ad8efe8de5fe4330aff30080ac6df7a7246a4a8b7b81cd62d7b19f43abb6d94abc8600bed767d67069d7ebae9faf440c50657cf599ac82c488100a320c  rshijack-0.5.2.tar.gz
"
